import { ref } from 'vue';

export function useTool() {
  /** @type {import('vue').Ref<ObjDetn.Using>} */
  const using = ref('none');
  const isUsing = v => v == using.value;
  const isNotUsingTool = () => isUsing('none');
  const isUsingTool = () => R.not(isUsing('none'));
  
  return { using, isUsing, isNotUsingTool, isUsingTool };
}
